
<template>
  <div>
    <div>
      <p>{{money}}</p>
      <input type="button" value="要钱" @click="$emit('dealmoney','1毛')">
    </div>
     <button @click="$emit('deal',list)">按钮</button>
     <input type="button" value="按钮" @click="fn">
   </div>
</template>
 
<script>
export default {
  name: "MySon",
  components: {},
  props: ['money'],
  data() {
    return {
      msg:1234,
      list:[124,3425,342]
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    fn(){
      this.$emit("dealclick",this.msg)
    },
    fn1(){
      this.$emit("dealmoney",200)
    }
  }
};
</script>

<style scoped>
     
</style>